﻿@page
@{ Layout = "_Layout"; }

<el-card>
    <div slot="header" class="clearfix">
        <span>{{ fileName }}-课件预览</span>
        <el-button style="float: right;padding:3px 0;" type="text" v-on:click="utils.closeLayerSelf"><i class="el-icon-close"></i></el-button>
    </div>
    <template v-if="isVideo">
        <el-scrollbar class="scrollbar" :style="{ height: ($(window).innerHeight()-180) + 'px' }">
            <div id="divPlayer"></div>
        </el-scrollbar>
    </template>
    <template v-else>
        <iframe :src="fileUrl" :style="{height: ($(window).innerHeight()-180) + 'px'}" style="width:100%;height:100%;"></iframe>
    </template>
</el-card>
<el-row align="center" style="margin-top:18px;">
    <el-col :span="24" align="center">
        <el-button icon="el-icon-close" :size="euiSize" v-on:click="utils.closeLayerSelf">退出预览</el-button>
    </el-col>
</el-row>

@section Scripts{
<script src="/sitefiles/assets/lib/xgplayer/index.js" type="text/javascript" charset="utf-8"></script>
<script src="/sitefiles/assets/lib/xgplayer/hls/xghlsindex.js" type="text/javascript" charset="utf-8"></script>
<script src="/sitefiles/assets/js/admin/study/studyCourseFileLayerView.js" type="text/javascript"></script>
}
